package com.stream;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class 使用集合创建Stream {
	public static void main(String[] args) {
		List<String> list = new ArrayList<>();
		System.out.println(list.stream());
		System.out.println(list.parallelStream());
		
		Set<String> set = new HashSet<>();
		System.out.println(set.stream());
		System.out.println(set.parallelStream());
		
		String[] strArray = new String[3];
		System.out.println(Arrays.stream(strArray));
		
		
		
		
	}
}
